class Config(object):
    DEBUG = None
    #配置链接的mysql数据库对象
    SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@127.0.0.1/new_news_news'
    #设置动态追踪为False
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    #配置Session信息
    SESSION_TYPE = 'redis'
    SESSION_USE_SIGNER = True
    #设置session过期时间
    PARMANENT_SESSION_LIFETIME = 86400


class developmentConfig(Config):
    DEBUG = True

class produvtionConfig(Config):
    DEBUG = False

config = {
    'development' : developmentConfig,
    'production' : produvtionConfig
}